<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">

<h:head>

</h:head>

<h:body>

	<h:form id="form">
	    <div>
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles}"		
		widgetVar="myPoll01" oncomplete="PF('myPoll01').stop();"
		listener="#{redireccionControllerSchedule.irSeleccionRoles}" />
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles == true? false : loginScheduleController.administrador}"
		widgetVar="myPoll04" oncomplete="PF('myPoll04').stop();"
		listener="#{redireccionControllerSchedule.irAdministrador}" />
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles == true? false : loginScheduleController.operador}"
		widgetVar="myPoll05" oncomplete="PF('myPoll05').stop();"
		listener="#{redireccionControllerSchedule.irOperador}" />
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles == true? false : loginScheduleController.atencionDocente}"
		widgetVar="myPoll06" oncomplete="PF('myPoll06').stop();"
		listener="#{redireccionControllerSchedule.irAtencionDocente}" />	
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles == true? false : loginScheduleController.soporteTecnico}"
		widgetVar="myPoll07" oncomplete="PF('myPoll07').stop();"
		listener="#{redireccionControllerSchedule.irSoporte}" />
		<p:poll interval="0" 
		rendered="#{loginScheduleController.tieneRoles == true? false : loginScheduleController.decano}"
		widgetVar="myPoll09" oncomplete="PF('myPoll09').stop();"
		listener="#{redireccionControllerSchedule.irDecano}" />				
		</div>
	</h:form>

</h:body>

</html>